<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>

<c:url var="css" value="/resources/css" /> 
<c:url var="menu" value="../../menu.jsp" /> 
<c:url var="modify" value="/admin/user/modify" />
<c:url var="view" value="/admin/user/view" />

<html>
<head>
	<link rel="stylesheet" type="text/css" media="screen" href="${css}/style.css"/>
	<title>Admin</title>
</head>

<body>
	<jsp:include page="${menu}" />
	<h1 id="banner">Admin - Users</h1>
	<hr/>
	
	<a href="${view}">Retour</a>
	
		<form class="form" action="${register}" method="POST" >
		<fieldset>
			<legend>Modification</legend>
			
			<p>
			<label for="username">Username</label>:
			<input id="username" name="username" size="20" maxlength="50" type="text" value="${user.username}" disabled="disabled"/>
			</p>
			
			<p>
			<label for="firstname">Firstname</label>:
			<input id="firstname" name="firstname" size="20" maxlength="50" type="text" value="${user.firstName}"/>
			</p>
			
			<p>
			<label for="lastname">Lastname</label>:
			<input id="lastname" name="lastname" size="20" maxlength="50" type="text" value="${user.lastName}"/>
			</p>
			
			<p>
			<label for="lvl">Level</label>:
			<input id="lvl" name="lvl" size="20" maxlength="2" type="text" value="${user.lvl}"/>
			</p>
			
			<p>
			<label for="exp">Experience</label>:
			<input id="exp" name="exp" size="20" maxlength="10" type="text" value="${user.exp}"/>
			</p>
			
			<p><input type="submit" value="Modifier"/></p>
		</fieldset>
	</form>
	<p class="message">${message}</p>
</body>
</html>